import React from "react"
import FooterContent from "../../components/FooterContent"
import { getHomeHotData } from "../../fetch/home"

import Banner from "../../components/Banner"

import bannder1 from "../../static/images/banner1.png"
import bannder2 from "../../static/images/banner1.png"
import bannder3 from "../../static/images/banner1.png"

export default class Home extends React.Component {

    constructor() {
        super();
        this.state = {
            banners : [bannder1,bannder2,bannder3]
        }

    }

    componentDidMount() {
        // 读取首页hot数据
        // getHomeHotData().then(data => { this.setState({ banners: data }); console.log("数据接口mock请求的接口数据",this.state.banners) });
    }

    render() {
        return (
            <div>
                首页 Home Content
                <Banner banners={ this.state.banners }/>
                <FooterContent></FooterContent>
            </div>
        );
    }
}